package com.tianji.remark.controller;


import com.tianji.remark.domain.dto.LikeRecordFormDTO;
import com.tianji.remark.domain.po.LikedRecord;
import com.tianji.remark.service.ILikedRecordService;
import io.swagger.v3.oas.annotations.parameters.RequestBody;
import lombok.RequiredArgsConstructor;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;

import org.springframework.web.bind.annotation.RestController;

/**
 * <p>
 * 点赞记录表 前端控制器
 * </p>
 *
 * @author jiege
 * @since 2024-06-28
 */
@RestController
@RequestMapping("/liked")
@RequiredArgsConstructor
public class LikedRecordController {
    private final ILikedRecordService likedRecordService;


    @PostMapping
    public void addLikeRecord(@RequestBody LikeRecordFormDTO likeRecordFormDTO) {
        likedRecordService.addLikeRecord(likeRecordFormDTO);
    }
}
